package com.whut.controller;

import com.whut.service.ProblemDescriptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/pd")
public class ProblemDescriptionController {
    @Autowired
    private ProblemDescriptionService problemDescriptionService;
    @ResponseBody
    @PostMapping("/saveCheckResultEdit")
    public String saveCheckResultEdit(int number, String problemDescription, String normsProvison, String problemNum) {

        return problemDescriptionService.saveCheckResultEdit(number,problemDescription,normsProvison,problemNum);
    }
}
